﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Trans.Business.DB;
using TransCend.DB;
using TransCend.Model;

namespace Trans.Business.Model
{
    [Serializable]
    [Table(SysUserDB.TABLE_NAME)]
    public class SysUserModel : BaseModel
    {
        private const string AS_ID = "ID";
        private const string AS_name = "name";
        private const string AS_pass = "pass";
        [Column(DataType = DataType.Int, Name = SysUserDB.ID, Alias = AS_ID)]
        public int? ID { get { return this.GetInt(AS_ID); } set { this[AS_ID] = value; } }
        [Column(DataType = DataType.String, Name = SysUserDB.name, Alias = AS_name)]
        public string name { get { return this.GetString(AS_name); } set { this[AS_name] = value; } }
        [Column(DataType = DataType.String, Name = SysUserDB.pass, Alias = AS_pass)]
        public string pass { get { return this.GetString(AS_pass); } set { this[AS_pass] = value; } }
    }
}
